package com.practice.springboot_01_zwj.service;

import com.github.pagehelper.PageInfo;
import com.practice.springboot_01_zwj.entity.AssignedTask;
import com.practice.springboot_01_zwj.entity.dto.AssignedTaskResponse;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface AssignedTaskService {
    int addAssignedTask(AssignedTask assignedTask);

    int updateAssignedTask(AssignedTask assignedTask);

    int deleteAssignedTask(Integer id);

//    PageInfo<AssignedTask> selectAssignedTask(String proposeLeader, String finishState ,String deptName, int pageNum, int pageSize);
    AssignedTaskResponse selectAssignedTask(String proposeLeader,
                                            String finishState,
                                            String deptName,
                                            int pageNum,
                                            int pageSize);
}
